package com.lyf.emp.entity;


import java.io.Serializable;
import java.util.List;

public class Dept implements Serializable {

  private Integer dno;
  private String dname;
  private List<Emp> empList;

  public List<Emp> getEmpList() {
    return empList;
  }

  public void setEmpList(List<Emp> empList) {
    this.empList = empList;
  }

  public Dept(Integer dno, String dname) {
    this.dno = dno;
    this.dname = dname;
  }

  public Dept() {
  }

  @Override
  public String toString() {
    return "Dept{" +
            "dno=" + dno +
            ", dname='" + dname + '\'' +
            ", empList=" + empList +
            '}';
  }

  public Integer getDno() {
    return dno;
  }

  public void setDno(Integer dno) {
    this.dno = dno;
  }


  public String getDname() {
    return dname;
  }

  public void setDname(String dname) {
    this.dname = dname;
  }

}
